package vfs.obj.association.impl;


import java.sql.Connection;
import vfs.filter.VFSFilter;
import vfs.obj.association.VFSNodeReadableByGroup;
import vfs.obj.entity.VFSGroup;
import vfs.obj.entity.VFSNode;
import vfs.persist.association.VFSNodeReadableByGroupManager;
import vfs.persist.association.impl.VFSNodeReadableByGroupManagerImpl;
import java.util.Iterator;

/**
 *
 * @author Matthew Eavenson <durandal@uga.edu>
 */
public class VFSNodeReadableByGroupImpl implements VFSNodeReadableByGroup{
    
    private VFSNodeReadableByGroupManager manager;
    
    public VFSNodeReadableByGroupImpl(Connection conn){
        manager = new VFSNodeReadableByGroupManagerImpl(conn);
    }
    
    @Override
    public Iterator<VFSNode> getNodes(VFSGroup group, VFSFilter filter){
        return manager.getNodes(group, filter);
    }
    
    @Override
    public VFSGroup getGroup(VFSNode node){
        return manager.getGroup(node);
    }
    
    @Override
    public void setGroup(VFSNode node, VFSGroup group){
        manager.setGroup(node, group);
    }
    
}
